home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pine / pine3.07 / doc / nroff-tn.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1992-07-15  |  508 b   |  15 lines

  1. #!/bin/sh
  2. #
  3. # This produces a plain text of the nroff/troff file tech-notes.me
  4. # If you've got real troff or ptroff, use that: troff -me tech-notes.me
  5. #
  6. nroff -Tcrt -me tech-notes.me | sed -e 's/.//g'  -e 's/^ *- Pine Tech/ &/'\
  7.             | awk ' BEGIN {output = 0}
  8.                     /^ *- [0-9]* - *$/ {output = 0; print; print "" }
  9.                     /^ / {output = 1}
  10.                     /Pine Tech/ {output = 1;}
  11.                           {if(output == 1) print}
  12.                   ' > tech-notes
  13.  
  14.  
  15.